<?php get_header(); ?>

	<div id="content" class="widecolumn">
	<a href="http://localhost:8888/project/animals/"><h1>Adopt Me!</h1></a>
	
	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

			<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
				<?php if (is_single()) { ?>
					<div id="single_name"><h1><?php the_title(); ?></h1></div>
                    <div id="picture_single">
					<?php the_post_thumbnail('medium'); ?> 
                    </div>
                    <div class="description_single">
                    	<ul>
                        	<li><?php animal_species();?></li>
                            <li>Gender: <?php animal_gender();?></li>
                            <li>Age: <?php animal_age();?></li>
                            <li>Breed: <?php animal_breed();?></li>
                            <li>Size: <?php animal_size();?></li>
                          </ul>
                    </div>
                   <div class="description_single">
                          <ul>
                            <li>Spayed or Neutered: <?php animal_fixed(); ?></li>
                            <li>Foster Home Location: <?php animal_foster_home(); ?></li>
                   		 </ul>   
                    </div>
                  	<div class="postmeta">
						<?php if (comments_open()) : ?><span class="comments"><?php comments_popup_link(__('0 <span>comments</span>', 'notesblog'), __('1 <span>comment</span>', 'notesblog'), __('% <span>comments</span>', 'notesblog'), '', 'Comments are closed'); ?></span><?php endif; ?>
						
					</div>
				<?php } ?>

				<div class="single_content">
					<?php the_content(__('Read more', 'notesblog')); ?>
				</div>
			</div>
            <div id="single_blog">
            	<a href="<?php animal_blog();?>">Read my blog</a>
             </div>
			<a href="http://localhost:8888/project/animal-rescue-site/contact-us">Interested in me? =) Contact my rescue!</a>
		<?php endwhile; ?>
		
			<div class="nav widecolumn">
			<?php if (is_single()) { ?>
            	<?php next_post_link('<div class="right">%link</div>'); ?> 
				<?php previous_post_link('<div class="left">%link</div>'); ?> 
			<?php } else { ?>
				<div class="left"><?php next_posts_link(__('See previous pet', 'notesblog')) ?></div>
				<div class="right"><?php previous_posts_link(__('See next pet', 'notesblog')) ?></div>
			<?php } ?>
			</div>
		
	<?php else : ?>
		<p>No animals found</p>
	<?php endif; ?>

	</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>